class CollectItem {
  final num id;
  final String image;
  final String name;
  final num grade;
  final num iniDeliveryFee;
  final num deliveryFee;

  CollectItem(
      {this.id,
      this.grade,
      this.image,
      this.name,
      this.deliveryFee,
      this.iniDeliveryFee});

  factory CollectItem.init(Map<String, dynamic> json) {
    return CollectItem(
        id: json['id'],
        image: json['image'],
        name: json['name'],
        grade: json['grade'],
        iniDeliveryFee: json['iniDeliveryFee'],
        deliveryFee: json['deliveryFee']);
  }
}

List<CollectItem> collectListModel = [
  CollectItem.init({
    'id': 0001,
    'image':
        'http://m.yihetang-jm.com/skin/picture/abuiabacgaagkjwe0quoqnnzoqmw0au4rau!1000x1000.jpg',
    'name': '益禾堂烧仙草',
    'grade': 9.7,
    'deliveryFee': 5,
    'iniDeliveryFee': 20,
    'isSelected': false
  }),
  CollectItem.init({
    'id': 0002,
    'image':
        'http://img.mp.itc.cn/upload/20170711/caf9bfc2f7f347d1875fa4e839f64daa_th.jpg',
    'name': '一点点',
    'grade': 9.6,
    'deliveryFee': 6,
    'iniDeliveryFee': 18,
    'isSelected': false
  }),
  CollectItem.init({
    'id': 0003,
    'image':
        'http://qcloud.dpfile.com/pc/YAKjKEULkn6bqDCxSjCbOiafFu_MAExOMuW1Bz0CQLBwtZZltfti6_weL8P92IzzuzFvxlbkWx5uwqY2qcjixFEuLYk00OmSS1IdNpm8K8twhW7bzr4O88Ivp4FuDG0SfCF2ubeXzk49OsGrXt_KYDCngOyCwZK-s3fqawWswzk.jpg',
    'name': '围炉小巷',
    'grade': 9.5,
    'deliveryFee': 7,
    'iniDeliveryFee': 25,
    'isSelected': false
  }),
];
